import Qt 4.7

Item {
    anchors.fill: parent;

    property alias searchInput: searchInput.text

    Text {
        id: text
        anchors {
            horizontalCenter: parent.horizontalCenter
            topMargin: 40
            top: parent.top
        }
        text: "Twitter Search"
        font.pixelSize: 55
        color: "white"
        style: Text.Raised;  styleColor: "#1d1d1d";
    }

    Rectangle {
        id: searchRect
        width: 410; height: 70
        anchors {
            horizontalCenter: parent.horizontalCenter
            top: text.bottom
            topMargin: 40
        }
        color: "white"
        TextInput {
            id: searchInput
            anchors {
                fill: parent
                leftMargin: 10
                rightMargin: 10
                topMargin: 5
            }
            font.pixelSize: 48
            color: "#8baed8"
            focus: true

        }
    }

    Row {
        anchors {
            horizontalCenter: parent.horizontalCenter
            top: searchRect.bottom
            topMargin: 20
        }
        spacing: 20
        Button {
            width: 280; height: 93
            text: "Search"
            onClicked: {
                main.search (searchInput.text);
            }
        }
        Button {
            width: 280; height: 93
            text: "Exit"
            onClicked: Qt.quit();
        }
    }  

}